#ifndef __TIME_H__
#define __TIME_H__

#include <stdint.h>
#include <sys/types.h> // For time_t

typedef enum {
  CLOCK_REALTIME = 0,
  CLOCK_MONOTONIC = 1,
  CLOCK_PROCESS_CPUTIME_ID = 2,
} clockid_t;

struct timespec {
  time_t   tv_sec;
  long     tv_nsec;
};

int clock_gettime(clockid_t clk_id, struct timespec *tp);
int clock_settime(clockid_t clk_id, const struct timespec *tp);

#endif /* ! __TIME_H__*/
